package org.example.数组;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author mumucgq
 * @create 2020-12-21 17:54
 */
public class ArrayToListTest {

    public static void main(String[] args) {
        String[] str = new String[] { "you", "wu" };
        ArrayList a = new ArrayList();
        a.subList(2,3);

        List<String> strings = Arrays.asList(str);
        strings.add("cc");
        str[1] = "tt";
        System.out.println(str);
        System.out.println(strings);
    }
}
